<?php
class Internal_Application_Resource_Gdataapps extends Zend_Application_Resource_ResourceAbstract
{   
    protected $_domain      = null;
    protected $_oauthkey    = null;
    protected $_oauthsecret = null;
    protected $_username    = null;
    protected $_password    = null;
    
    public function setOauthsecret($oauthSecret)
    {
        $this->_oauthsecret = $oauthSecret;
    }
    
    public function setOauthkey($oauthKey)
    {
        $this->_oauthkey = $oauthKey;
    }

    public function setDomain($domain)
    {
        $this->_domain = $domain;
    }
    
    public function setUsername($username)
    {
        $this->_username = $username;
    }
    
    public function setPassword($password)
    {
        $this->_password = $password;
    }
    
    public function init()
    {
        Zend_Registry::set('gdataOauthKey', $this->_oauthkey);
        Zend_Registry::set('gdataOauthSecret', $this->_oauthsecret);
        Zend_Registry::set('gdataDomain', $this->_domain);
        Zend_Registry::set('gdataUsername', $this->_username);
        Zend_Registry::set('gdataPassword', $this->_password);
    }
}